from django.urls import re_path

from recruitments import views

urlpatterns = [
    re_path(r'^city/hotlist/$',views.CityViewSet.as_view()),
    re_path(r'^enterprise/(?P<pk>\d+)/visit/$',views.EnterpriseVisitViewSet.as_view()),
    re_path(r'^recruits/search/recommend/$',views.RecruitsRecommendViewSet.as_view()),
    re_path(r'^recruits/search/latest/$',views.RecruitsRecommendViewSet.as_view()),
    re_path(r'^enterprise/search/hotlist/$',views.EnterpriseHotlist.as_view()),


    re_path(r'^enterprise/(?P<pk>\d+)/cancelcollect/$',views.EnterpriseCollect.as_view()),
    re_path(r'^enterprise/(?P<pk>\d+)/collect/$',views.EnterpriseCollect.as_view()),
    re_path(r'^recruits/search/city/keyword/$',views.RecruitsKeyword.as_view()),
    re_path(r'^recruits/(?P<pk>\d+)/$',views.RecruitsIdViewSet.as_view()),
    re_path(r'^enterprise/(?P<pk>\d+)/$',views.EnterpriseViewSet.as_view()),
    re_path(r'^recruits/(?P<pk>\d+)/visit/$',views.RecruitsVisitViewSet.as_view()),
    re_path(r'^recruits/(?P<pk>\d+)/collect/$',views.RecruitsCollect.as_view()),
    re_path(r'^recruits/(?P<pk>\d+)/cancelcollect/$',views.RecruitsCollect.as_view())
]